#include <iostream>
#include <string>
#include <iomanip>

using namespace std;

class Vector
{
	private:
		double x, y;
	
	public:
		Vector(double _x=0, double _y=0)
		{
			set(_x, _y);
		}

		void set(double _x=0, double _y=0)
		{
			x = _x;
			y = _y;
		}

	friend Vector operator+(const Vector& vector_left, const Vector& vector_right);
	friend Vector operator-(const Vector& vector_left, const Vector& vector_right);
	friend ostream& operator<<(ostream& output, const Vector& vector);
};

Vector operator+(const Vector& vector_left, const Vector& vector_right)
{
	return Vector(vector_left.x + vector_right.x, vector_left.y + vector_right.y);
}

Vector operator-(const Vector& vector_left, const Vector& vector_right)
{
	return Vector(vector_left.x - vector_right.x, vector_left.y - vector_right.y);
}

ostream& operator<<(ostream& output, const Vector& vector)
{
	return output << "(" << vector.x << ", " << vector.y << ")";
}

int main()
{
	Vector v1(3, 4), v2(4, 5);

	cout << fixed << setprecision(2);
	cout << v1 << " + " << v2 << " = " << v1 + v2 << endl;
	cout << v1 << " - " << v2 << " = " << v1 - v2 << endl;

	return 0;
}
